// *** flatten数组扁平化 ***/
// let arr = [1,2,[3,4,[5,6]],7]
// console.log(zpUtils.flatten(arr))

// *** chunk数组分组 ***/
//console.log(zpUtils.chunk([1,2,3,4,5,6,7],3))//三个为一组分为二维数组  [[1,2,3],[4,5,6],[7]]

// *** difference数组求差集 ***/
//console.log(zpUtils.difference([1,3,5,7],[5,8]))
// *** arrayEqual 判断两个数组是否相等 ***/
//console.log(zpUtils.arrayEqual([1,2],[1,2]))

console.log(zpUtils.isEvery([{
    id:1,
    name:'z'
},{
    id:3,
    name:'c'
},{
    id:2,
    name:'v'
}],item => item.id > 1))